The built-in function max(x, y) returns the maximum value of x and y. max(x, max(y, z)) obviously returns the largest value of x, y, and z.